import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import qiankun from 'vite-plugin-qiankun';

// https://vitejs.dev/config/
export default defineConfig({
  base: 'http://localhost:8001/', // 子应用 dev 地址
  server: { port: 8001, cors: true },
  plugins: [react(), qiankun('react-sub', { useDevMode: true })]
});